<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('pay/index')}">支付列表</a></li>
			<li><a href="{:url('pay/add')}">新增支付</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('pay/index')}">
			支付方式:
			<input type="text" class="form-control" name="name" style="width: 120px;" value="{:input('request.name/s','')}" placeholder="请输入种支付方式}">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:url('pay/index')}">清空</a>
		</form>
		<form  method="post" class="margin-top-20">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="40">ID</th>
						<th align="left">支付方式</th>
						<th width="160">店铺</th>
						<th>状态</th>
						<th width="160">操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="data" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.name}</td>
						<td>{$vo.shop_name}</td>
						<td>{$vo.status_name}</td>
						<td>
						 <if condition="$vo['status'] eq 1">
                            <a class="js-ajax-dialog-btn"
                               href="{:url('pay/upstatus',['pay_guid'=>$vo['pay_guid'],'status'=>0])}">禁用</a>
                            <else/>
                            <a class="js-ajax-dialog-btn"
                               href="{:url('pay/upstatus',['pay_guid'=>$vo['pay_guid'] ,'status'=>1])}">启用</a>
                         </if>
							<a href="{:url('pay/detail',array('pay_guid'=>$vo['pay_guid']))}">{:lang('EDIT')}</a>
							<a class="js-ajax-delete" href="{:url('pay/del',array('pay_guid'=>$vo['pay_guid']))}">{:lang('DELETE')}</a>
						 </td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>